package com.team2.outpatient_sys.pojo;

import java.util.List;

/**
 * 用户 实体类
 */
public class    User {
    // 用户id
    private Integer id;
    // 用户名
    private String username;
    // 登录密码
    private String password;
    // 联系电话
    private String phone;
    //绑定的病人
    private List<Patient> patients;

    public User() {
    }

    public User(Integer id, String username, String password, String phone, List<Patient> patients) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.patients = patients;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<Patient> getPatients() {
        return patients;
    }

    public void setPatients(List<Patient> patients) {
        this.patients = patients;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", patients=" + patients +
                '}';
    }
}
